import  flyio from 'flyio'
import Base from '../../config/testing.env'

let base = Base.BASE_API

/*export const getENVConfigapi= (params)=>{return flyio.get(`${base}/tool/getevn`,params)}
export const addENVConfigapi=(params)=>{return flyio.post(`${base}/tool/addevn`,params)}

export const getDbConfigapi= (id,params)=>{return flyio.get(`${base}/tool/getdbconfig/${id}`,params)}
export const addDbConfigapi= (params)=>{return flyio.post(`${base}/tool/adddbconfig`,params)}
export const updateDbConfigapi= (params)=>{return flyio.post(`${base}/tool/updateconfig`,params)}*/



//export const getdemondetail = (params)=>{return flyio.get(`${base}/manager/getdemondetail`)}
//export const addnewdemond =


/*export const getIterationData=(params)=>{return flyio.get(`${base}/manager/getIterationData`)} //所有迭代需求信息
export const getIterationStatus=(params)=>{return flyio.get(`${base}/manager/getIterationStatus`)}//迭代状态枚举
//export const updateproductstatus=(params)=>{return flyio.post(`${base}/tool/updateproductstatus`,params)}//更改产品状态
export const updateandsavebug=(params)=>{return flyio.post(`${base}/manager/updateandsavebug`,params)}//更改或创建bug信息
export const updateandsavedemand=(params)=>{return flyio.post(`${base}/manager/updateandsavedemand`,params)}//更改或创建需求信息
export const updateandsavedevelop=(params)=>{return flyio.post(`${base}/manager/updateandsavedevelop`,params)}//更改或创建研发信息
export const updateandsavetest=(params)=>{return flyio.post(`${base}/manager/updateandsavetest`,params)}//更改或创建测试信息
export const updateandsaveproduct=(params)=>{return flyio.post(`${base}/manager/updateandsaveproduct`,params)}//创建产品信息
export const getprojectlist=(params)=>{return flyio.get(`${base}/manager/getprojectlist`,params)}//获取项目列表*/
//user
export const getemployees = (params)=>{return flyio.get(`${base}/user/getemployees`,params)}//获取员工列表
export const savenewemployee = (params)=>{return flyio.post(`${base}/user/savenewemployee`,params)}//新增 员工
export const getUserJobType = (params)=>{return flyio.get(`${base}/user/getUserJobType`,params)}
//enum
export const getDemandType = (params)=>{return flyio.get(`${base}/manager/getDemandType`,params)}
export const getIterationStatus = (params)=>{return flyio.get(`${base}/manager/getIterationStatus`,params)}
export const getBugStatus = (params)=>{return flyio.get(`${base}/manager/getBugStatus`,params)}
export const getBugLevel = (params)=>{return flyio.get(`${base}/manager/getBugLevel`,params)}

//project
export const getProjects = (params)=>{return flyio.get(`${base}/manager/getProjects`,params)}
export const saveProject = (params)=>{return flyio.post(`${base}/manager/saveProject`,params)}
//iteration
export const iterationChange = (iterationId,params)=>{return flyio.post(`${base}/manager/iterationChange/${iterationid}`,params)}
export const saveIteration = (params)=>{return flyio.post(`${base}/manager/saveIteration`,params)}
export const getInteration = (params)=>{return flyio.get(`${base}/manager/getInteration`,params)}
export const searchInteration = (params)=>{return flyio.post(`${base}/manager/searchInteration`,params)}
export const getInterationDetail = (iterationId,params)=>{return flyio.get(`${base}/manager/getInterationDetail/${iterationId}`,params)}


//demand
export const saveDemandInfo = (iterationId,params)=>{return flyio.post(`${base}/manager/saveDemandInfo/${iterationId}`,params)}
export const getDemandInfo = (iterationId,params)=>{return flyio.get(`${base}/manager/getDemandInfo/${iterationId}`,params)}
//develop
export const saveDevelopInfo = (iterationId,params)=>{return flyio.post(`${base}/manager/saveDevelopInfo/${iterationId}`,params)}
export const getDevelopInfo = (iterationId,params)=>{return flyio.get(`${base}/manager/getDevelopInfo/${iterationId}`,params)}
//task
export const saveTaskInfos = (ownerNo,params)=>{return flyio.post(`${base}/manager/saveTaskInfos/${ownerNo}`,params)}
export const saveTaskInfo = (ownerNo,params)=>{return flyio.post(`${base}/manager/saveTaskInfo/${ownerNo}`,params)}
export const getTaskInfos = (ownerNo,params)=>{return flyio.get(`${base}/manager/getTaskInfos/${ownerNo}`,params)}
export const deleteTaskInfo = (id,params)=>{return flyio.post(`${base}/manager/deleteTaskInfo/${id}`,params)}
//test
export const saveTestInfo = (iterationId,params)=>{return flyio.post(`${base}/manager/saveTestInfo/${iterationId}`,params)}
export const getTestInfo = (iterationId,params)=>{return flyio.get(`${base}/manager/getTestInfo/${iterationId}`,params)}
//bugs
export const saveBugs = (iterationId,params)=>{return flyio.post(`${base}/manager/saveBugs/${iterationId}`,params)}
export const getBugs = (iterationId,params)=>{return flyio.get(`${base}/manager/getBugs/${iterationId}`,params)}

